﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ImaginaryDevelopmentMvc3.Controllers
{
    [App.AllowAnonymous]
    public class TimeController : Controller
    {
        //
        // GET: /Time/

        public ActionResult Index()
        {

            return View("Diagnostic");
        }
        [OutputCache(NoStore=true,Duration=1)]
        public ContentResult ServerUtc()
        {
            return Content(DateTime.UtcNow.ToLongDateString()+";"+ DateTime.UtcNow.ToLongTimeString());
        }
        [OutputCache(NoStore = true, Duration = 1)]
        public ContentResult ServerLocal()
        {
            return Content(DateTime.UtcNow.ToLongDateString() + ";"+DateTime.Now.ToLongTimeString());
        }
  
    }
}
